//
//  EnterTableViewCell.m
//  BuffetNews
//
//  Created by 李荃荃 on 14-11-7.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "EnterTableViewCell.h"

@implementation EnterTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.imgView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.imgView];
        [_imgView release];
        self.enterLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.enterLabel];
        [_enterLabel release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.imgView.frame = CGRectMake(10, 10, 50, self.contentView.frame.size.height - 20);
    self.enterLabel.frame = CGRectMake(70, 0, self.contentView.frame.size.width - 70, self.contentView.frame.size.height);
}
- (void)awakeFromNib
{
    // Initialization code
}
- (void)dealloc
{
    [_enterLabel release];
    [_imgView release];
    [super dealloc];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
